package demo

import org.apache.spark.{SparkConf, SparkContext}
import org.apache.spark.rdd.RDD

object DemoOne {

  def main(args: Array[String]): Unit = {

    val conf = new SparkConf().setAppName("aaa").setMaster("local")
    val sc = new SparkContext(conf)

    val value = sc.textFile("src\\main\\scala\\join*.txt")
    value.collect().foreach(println)
    value.foreach(println)

    sc.stop()
  }

}
